#pragma once
#include "afxcmn.h"
#include "DatePickerCombo.h"

typedef	struct scdownload_info_t
{
	CWnd			*	pWnd;
	CXTPProgressCtrl	*	pProgress;
	int nFunc;
	
	long lStartDate;
	long lEndDate;
} SCDOWNLOAD_INFO, * PSCDOWNLOAD_INFO;


// CSCDownloadDlg dialog

class CSCDownloadDlg : public CXTPDialog
{
	DECLARE_DYNAMIC(CSCDownloadDlg)

public:
	CSCDownloadDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSCDownloadDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_SC_DOWNLOAD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	int m_nDownloadDataType;

	CDatePickerCombo	m_dataStart;
	CDatePickerCombo	m_dataEnd;

	CXTPButton m_btnOptionKDay;
	CXTPButton m_btnOptionK5min;
	CXTPButton m_btnOptionDetail;
	CXTPButton m_btnOptionDrdata;
	CXTPButton	m_btnCancel;
	CXTPButton	m_btnOK;
	CXTPButton	m_btnStop;
	CXTPProgressCtrl m_progressSCDownload;

	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedRadioKday();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedRadioK5min();
	afx_msg void OnBnClickedRadioDetail();
	afx_msg void OnBnClickedRadioDrdata();

protected:
	SCDOWNLOAD_INFO *	m_pSCDownloadInfo;
public:
	afx_msg void OnBnClickedCancel();
};
